var refreshActiveThreadsInterval = 10;
var threads;

function initializeActiveThreads()
{
	threads = document.getElementById("Active3Threads");
	
	setTimeout(refreshActiveThreads, refreshActiveThreadsInterval * 1000);
}

function refreshActiveThreads()
{
	var async = new Async("GetActiveThreads", refreshActiveThreadsCompleted);
	
	async.Execute();
	
	setTimeout(refreshActiveThreads, refreshActiveThreadsInterval * 1000);
}

function refreshActiveThreadsCompleted(results)
{
	threads.innerHTML = results;
}